<template>
  <span>
    <el-button size="small" style="margin-left: 10px;" type="primary">查询</el-button>
    <el-button size="small" type="primary" @click="goto(add)">新增</el-button>
    <el-button size="small">保存</el-button>
    <el-button size="small" type="primary">导入</el-button>
    <el-button size="small" type="primary">导出</el-button>
    <el-button size="small" type="success">审核</el-button>
    <el-button size="small" type="danger">删除</el-button>
  </span>
</template>

<script>
export default {
  name: 'PublicButton',
  props: ['add'],
  methods: {
    goto(to) {
      this.$router.push(to)
    },
  }
}
</script>

<style scoped></style>